<template>
  <div class="stateMent">
    <nut-radio-group v-model="radioVal" direction="horizontal" @change="handleChange">
      <nut-radio shape="button" label="years">年</nut-radio>
      <nut-radio shape="button" label="month">月</nut-radio>
      <nut-radio shape="button" label="day">日</nut-radio>
    </nut-radio-group>
    <div id="main"></div>
    <nut-table :columns="columns()" :data="dataPom()" :striped="striped"></nut-table>
  </div>
</template>

<script lang="ts">
import { onMounted, toRefs } from 'vue';
import importFunction from './stateMent';
export default {
  setup() {
    const { base, init, handleChange, columns, dataPom } = importFunction();
    onMounted(() => {
      init();
    });
    return {
      ...toRefs(base),
      handleChange,
      columns,
      dataPom,
    };
  },
};
</script>

<style lang="less" scoped>
.stateMent {
  width: calc(100% - 20px);
  height: 1000px;
  padding: 10px;
}
#main {
  width: 100%;
  height: 320px;
}
</style>
./stateMent
